<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.opensymphony.com/sitemesh/decorator"
	prefix="dec"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<%@ page import="com.pacifico.telebusca.exception.Errores" %>	
	
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<title><dec:title default="Pacífico Seguros | TeleBusca Menu" /></title>

<link rel="stylesheet" type="text/css" href="resources/css/menu.css" />
<link rel="stylesheet" type="text/css" href="resources/css/main.css" />
<dec:head />
<link rel="stylesheet"
	href="resources/css/jquery-ui-1.10.0.custom.min.css" type="text/css" />
<link href="resources/css/jquery.timepicker.css" type="text/css"
	rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="resources/css/calendar.css"
	media="screen" />
<link rel="stylesheet"
	href="resources/css/jquery-ui-1.10.0.custom.min.css" type="text/css" />
<link rel="stylesheet" href="resources/css/jquery.ui.timepicker.css"
	type="text/css" />
<link rel="stylesheet" href="resources/css/telebusca.css"
	type="text/css" />

	


<script type="text/javascript" src="resources/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="resources/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="resources/js/jquery-1.10.3-ui.js"></script>

<script type="text/javascript" src="resources/js/jquery.ui.core.min.js"></script>
<script type="text/javascript"
	src="resources/js/jquery.ui.widget.min.js"></script>
<script type="text/javascript" src="resources/js/jquery.ui.tabs.min.js"></script>
<script type="text/javascript"
	src="resources/js/jquery.ui.position.min.js"></script>


<script src="resources/js/jquery.timepicker.js"></script>
<script type="text/javascript" src="resources/js/calendar.js"></script>
<script type="text/javascript"
	src="resources/js/jquery.ui.timepicker.js"></script>
<script type="text/javascript" src="resources/js/telebusca.js"></script>


<script language="javascript" type="text/javascript">
 
    
</script> 



</head>
<%
pageContext.setAttribute("E1002", Errores.MAP.get("E1002"));                            
%>


<body>
<c:set var="authentication"
	value="${sessionScope['SPRING_SECURITY_CONTEXT'].authentication}" />
<c:set var="authentication" value="${authentication}" />
	

<c:set var="user" value="${authentication.principal}" />
<c:url value="/importaraudios" var="importaraudios" />
<c:url value="/consultaraudio" var="consultaraudio" />
<c:url value="/mantenimientoempresa" var="mantenimientoempresa" />
<c:url value="/mantenimientousuarioempresa"
	var="mantenimientousuarioempresa" />

<div id="bodyWrapper">
<div id="headermenu">
<div id="welcomemenu"><spring:message code='bienvenida'
	arguments="${user.username}" /></div>
<div id="link"><c:url value="/j_spring_security_logout"
	var="urlLogOut" /> <a href="${urlLogOut}">Salir</a></div>
<div id="bussines">Pacifico <b>Seguros</b></div>
<div id="headerleftimg"></div>

<div id="headerleftdate"><%=new java.util.Date()%></div>

</div>



<div id="menuimg"></div>
<div id="menudown">
<p aling="right">TeleBusca</p>
</div>



<div id="pageBody">
<c:if test="${empty authentication.principal.authorities}">
		<c:out value="${E1002}" />
	</c:if>

<div id="sidebar">

<ul id="navi">

	<sec:authorize access="hasRole('GS - TeleBusca - Importar Audios')">
		<li><a href="${importaraudios}">Importar Audios</a></li>
	</sec:authorize>
	<sec:authorize access="hasRole('GS - TeleBusca - Realizar Busquedas')">
		<li><a href="${consultaraudio}">Consultar Audios</a></li>
	</sec:authorize>
	<sec:authorize access="hasRole('GS - TeleBusca - Configurar Empresas')">
		<li><a href="${mantenimientoempresa}">Mantenimiento Empresa</a></li>
	</sec:authorize>
	<sec:authorize access="hasRole('GS - TeleBusca - Configurar Empresas Por Usuario')">
		<li><a href="${mantenimientousuarioempresa}">Mantenimiento
		Usuario Empresa</a></li>
	</sec:authorize>

</ul>
</div>


<dec:body />


</div>

</div>

</body>


</html>
